﻿using System;
using Petra.Gis.Geometry;
using Petra.Gis.Geometry.Support;
using Petra.Gis.DataServices;
using Petra.Gis.DataServices.MapyCz;
using Petra.Gis.DataServices.Metadata;
using Petra.Gis.ReferenceSystemServices;
using Petra.Gis.ReferenceSystemServices.Transformations;

namespace testDataServices
{
  public class MapyCz
  {

    public static void testMe()
    {

      MapyCzFeatureSet fs = null;//= new Petra.Gis.DataServices.MapyCz.MapyCzFeatureSet();

      ProjectedCoordinateSystem p = (ProjectedCoordinateSystem)fs.Metadata.GeometryFieldsMetadata[0].SRS;
      TransverseMercatorProjection utm = new TransverseMercatorProjection(p, true);

      Coordinate c = Coordinate.Parse("15°52'39.184W 28°18'4.737N");

      utm.Transform(c);

      c = Coordinate.Parse("44°44'15.873E 73°7'47.564N");

      utm.Transform(c);
    }

  }
}
